//*bimap::iterator->left, ->right
#include <boost/bimap.hpp>
#include <iostream>
#include <string>

int main()
{
	typedef boost::bimap<std::string, int> bimap;
	bimap persons;

	persons.insert(bimap::value_type("Euler",20));
    persons.insert(bimap::value_type("Gauss",21)); 
    persons.insert(bimap::value_type("Poincare",22));

	for (bimap::iterator it = persons.begin(); it!=persons.end(); ++it) 
		std::cout << it->left << " is " << it->right << std::endl;
}